<div class="easyui-panel" title="" style="width:436px">
    <div style="padding:10px 60px 10px 60px">

        <table cellpadding="5">
            <tr>
                <td>岗位名称:</td>
                <td><input id="stat_name" class="easyui-textbox" type="text"
                           name="stat_name" data-options="required:true"
                        value="<{$station['stat_name']}>"/></td>
            </tr>

            <tr>
                <td>描述:</td>
                <td><input id="description" class="easyui-textbox" name="description"
                           data-options="multiline:true" style="height:60px"
                           value="<{$station['description']}>"/></td>

            </tr>

        </table>
        <input id="stat_id"  type="hidden"
               name="stat_id" value="<{$station['stat_id']}>"/>
        <td><a href="javascript:void(0)" class="easyui-linkbutton" onclick="update_station()">提交</a></td>


    </div>
</div>
<script>
    function update_station(){
        var stat_id = $("#stat_id").val();
        var stat_name = $("#stat_name").val();
        var description = $("#description").val();

        if(stat_name==null || stat_name == ""){
            alert("请填写岗位名称！");
        }else{
            $.ajax({
                url:'<{:U('Station/stationEdit')}>',
                    type: 'POST',
                    data: {
                stat_id:stat_id,
                stat_name:stat_name,
                        description:description
            },
            timeout: 3000,
                    success: function (data) {

                alert(data);
                stationStationRefresh();
                $('#station_stationlist_edit_dialog').dialog('close');
            },
            async: false
        });

    }
    }
</script>